<!DOCTYPE html>
<html lang="zh_CN" xmlns:th="http://www.thymeleaf.org">
<head>
    <base th:href="@{/}">
    <meta charset="utf-8">
    <title>新增</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <link rel="stylesheet" href="static/layui/css/layui.css" media="all"/>
    <style type="text/css">
        .layui-form-label {
            white-space: nowrap;
        }
    </style>
</head>
<body class="layui-fluid">
<div class="layui-row">
    <div class="layui-col-md6 layui-col-md-offset3" align="center">
        <form class="layui-form" action="">
            <div class="layui-form-item" style="margin-top: 20px;">
                <div class="layui-inline">
                    <label class="layui-form-label">父级角色</label>
                    <div class="layui-input-block">
                        <input type="text" id="pid" th:value="${pid}" disabled="disabled" class="layui-input">
                    </div>
                </div>
            </div>
            <div class="layui-form-item" style="margin-top: 20px;">
                <div class="layui-inline">
                    <label class="layui-form-label">角色代码</label>
                    <div class="layui-input-block">
                        <input type="text" id="roleCode" placeholder="请输入" class="layui-input">
                    </div>
                </div>
            </div>
            <div class="layui-form-item" style="margin-top: 20px;">
                <div class="layui-inline">
                    <label class="layui-form-label">角色名称</label>
                    <div class="layui-input-block">
                        <input type="text" id="roleName" placeholder="请输入" class="layui-input">
                    </div>
                </div>
            </div>
        </form>
    </div>
</div>
<script type="text/javascript" src="static/plugin/jquery/jquery-3.2.1.min.js"></script>
<script type="text/javascript" src="static/layui/layui.js"></script>
<script type="text/javascript">
    layui.use(['form', 'layer', 'jquery', 'table', 'laydate', 'upload', 'element'], function () {
        var form = layui.form,
            layer = layui.layer,
            laypage = layui.laypage,
            $ = layui.jquery,
            table = layui.table,
            upload = layui.upload,
            laydate = layui.laydate,
            element = layui.element;

    })
</script>
</body>
</html>